package com.cloudbroker.bcs.platform.ltb.bizapi.constants.type;

/**
 * Created by fangyf18371 on 2016/12/13.
 * 首页达人推荐（取达人排名）枚举
 */
public enum RecommendComuserType {
    TOTALREVENUE("3","总收益"),
    COLLECTSENTIMENT("4","收藏人气"),
    COUSERCUSTOM("6","达人推荐自定义");

    private final String val;

    private final String description;

    private String toString;

    RecommendComuserType(String val, String description) {
        this.val = val;
        this.description = description;
    }

    public String getVal() {
        return val;
    }

    public String getDescription() {
        return description;
    }

    public static RecommendComuserType getByValue(String val) {
        if (val==null||val.equals("")){
            return null;
        }
        for(RecommendComuserType type : values()) {
            if( type.getVal().equals(val) ) {
                return type;
            }
        }
        return null;
    }
    @Override
    public String toString() {
        return "RecommendComuserType{" +
                "val='" + val + '\'' +
                ", description='" + description + '\'' +
                ", toString='" + toString + '\'' +
                '}';
    }
    }
